<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>wangEditor demo</title>
</head>
<body>
<div id="editor">
    <!--<p>欢迎使用 <b>wangEditor</b> 富文本编辑器</p>-->
</div>

<!-- 注意， 只需要引用 JS，无需引用任何 CSS ！！！-->
<script type="text/javascript" src="wangEditor-3.1.1/release/wangEditor.min.js"></script>
<script type="text/javascript">
    var E = window.wangEditor;
    var editor = new E('#editor');
    editor.customConfig.uploadImgShowBase64 = true;

    editor.customConfig.linkImgCallback = function (url) {
        console.log("url----->"+url) // url 即插入图片的地址
    };

    // 或者 var editor = new E( document.getElementById('editor') )
    editor.create()
</script>
</body>
</html>